package com.woniuxy.services;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entitys.TbDepartment;
import com.woniuxy.entitys.TbBed;
import com.woniuxy.entitys.TbMalfunction;
import com.woniuxy.entitys.TbSection;

import java.util.List;

public interface SectionService {
    int updateMyself(TbSection tbSection);
    PageInfo<TbSection> getSection(int pageNum, int pageSize, String phone, String sname, Integer did, Integer hid);
    int updatePassword(Integer id);
    int softdel(Integer id);

    Integer getHidByUid(Integer uid);

    int saveAdd(String gender, String phone, String sname,Integer hid);

    int removeHead(Integer id);

    List<TbDepartment> getNullDep(Integer hid);

    int saveAss(Integer sid, Integer did);

    TbSection getSectionInfoByUid(Integer uid);

    List<TbBed> getAllBed(Integer pageNum, Integer pageSize, Integer status, Integer uid);

    List<TbBed> getAllBedByFuzz(Integer pageNum, Integer pageSize, String search, Integer uid);

    boolean addBed(TbBed tbBed);

    boolean updateBed(TbBed tbBed);

    boolean delSomeBed(List<Integer> list);

    TbSection getMyself(String token);
}
